package com.youlai.boot.modules.comment.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.boot.modules.comment.model.Comment;
import com.youlai.boot.modules.comment.model.CommentForm;
import com.youlai.boot.modules.comment.model.CommentVO;

public interface CommentService extends IService<Comment> {
    Page<CommentVO> getCommentPage(Long userId, Long rootId, Integer status, int pageNum, int pageSize);

    CommentVO getCommentById(Long id);

    Long saveComment(CommentForm form);

    void updateComment(CommentForm form);

    boolean deleteComment(Long id);

    boolean likeComment(Long id);
}